import {httpRequest} from '@/request/https'
export default {
  /**
   * 备忘录分页查询
   * */
  postResourcePage: params => httpRequest({url: '/con/conResourceMemorandum/page', method: 'post', params}),
  /**
   * 新增备忘录
   * */
  postAddMemorandum: params => httpRequest({url: '/con/conResourceMemorandum', method: 'post', params}),
  /**
   * 修改备忘录
   * */
  putMemorandum: params => httpRequest({url: '/con/conResourceMemorandum', method: 'put', params}),
  /**
   * 删除备忘录
   * */
  deleteMemorandum: params => httpRequest({url: `/con/conResourceMemorandum/${params}`, method: 'delete'}),
  /**
   * 申请备忘录优秀模板
   * */
  postMemorandumExcellent: params => httpRequest({url: `/con/conResourceMemorandum/excellent`, method: 'post', params}),
  /**
   * 主合同分页查询
   * */
  postResourceMainPage: params => httpRequest({url: '/con/conResourceMain/page', method: 'post', params}),
  /**
   * 新增主合同
   * */
  postResoureMain: params => httpRequest({url: '/con/conResourceMain', method: 'post', params}),
  /**
   * 修改主合同
   * */
  putResoureMain: params => httpRequest({url: '/con/conResourceMain', method: 'put', params}),
  /**
   * 删除主合同
   * */
  deleteResoureMain: params => httpRequest({url: `/con/conResourceMain/${params}`, method: 'delete'}),
  /**
   * 申请备忘录优秀模板
   * */
  postResoureMainExcellent: params => httpRequest({url: `/con/conResourceMain/excellent`, method: 'post', params}),
  /**
   * 查询备忘录详情
   * */
  getMemorandumInfo: params => httpRequest({url: `/con/conResourceMemorandum`, method: 'get', params}),
  /**
   * 主合同详情
   * */
  getResoureMainInfo: params => httpRequest({url: `/con/conResourceMain`, method: 'get', params}),
  /**
   * 备忘录导出
   * */
  exportMemorandum: params => httpRequest({url: `/con/conResourceMemorandum/export`, method: 'post', params}),
  /**
   * 主合同导出
   * */
  exportResoureMain: params => httpRequest({url: `/con/conResourceMain/export`, method: 'post', params}),
  /**
   * 查询所有主合同
   * */
  getAllMainList: params => httpRequest({url: `/con/conResourceMain/listAll`, method: 'get', params}),
  /**
   * 查询OCR信息
   * */
  getOcrInfo: params => httpRequest({url: `/con/conResourceMemorandum/fieldLocation`, method: 'get', params})
}
